function sub(a, b) {
  return Promise((resolve, reject) => {
    setTimeout(() => resolve(a - b), 1000);
  });
}
